package util;

import common.HandlerBase;
import common.KeyCodes;

/**
 * 控制类
 * @author cccssw
 * 
 */
public class Interrupter extends HandlerBase {

    public static void A(String param) {
        //keydown method
        KeyPressSimulation.KeyDown(KeyCodes.TranslateKeyCode(param));
    }

    public static void B(String param) {
        //keyup method
        KeyPressSimulation.KeyUp(KeyCodes.TranslateKeyCode(param));
    }
    
    public static void C(String param) {
        //key hold  method
        KeyPressSimulation.pressKey(KeyCodes.TranslateKeyCode(param));
    }
}
